package com.sgj.vo;

import com.sgj.validator.IsMobile;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * @author 沈国纪
 * @date 2021/1/16 18:26
 */
@Data
public class LoginVo {

    /**
     * 手机号
     */
    @NotNull(message = "手机号不能为空")
    @IsMobile(message = "手机号格式错误")
    private String mobile;

    /**
     * 密码
     */
    @NotNull(message = "密码不能为空")
    @Length(min = 32, message = "密码长度小于32位")
    private String password;
}
